<html>
<head>
    <title>hangge.com</title>
    <meta charset="utf-8"/>
    <script type="text/javascript" src="jquery-2.0.3.min.js"></script>
    <script>
        $(document).ready(function () {
            $('#comment').on('input propertychange', function () {
                //var count = $(this).val().length;
                $('#tip').html($(this).val());
            });
        });
    </script>
</head>
<body>
<textarea id="comment" rows="5" cols="50"></textarea>
<br>
<div id="tip"></div>
</body>
</html>